

INSERT INTO  TRASPARENZA

SELECT 'T33',BOLLETTA,'','TOTALE netto IVA','','','','','','','',SUM(TOTALE),'',null FROM TRASPARENZA 
WHERE RIGA IN ('T00','T11','T22','T30','T31')

GROUP BY BOLLETTA

